//
//  EDSMoLocationManager.h
//  DriveSchoolCoach
//
//  Created by TangBin on 2019/7/8.
//  Copyright © 2019 TangBin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "EDSMoLocationModel.h"

typedef void(^MoLocationSuccess) (EDSMoLocationModel * _Nullable areaModel);
typedef void(^MoLocationFailed) (NSError * _Nullable error);

NS_ASSUME_NONNULL_BEGIN

@interface EDSMoLocationManager : NSObject <CLLocationManagerDelegate>
{
    CLLocationManager *manager;
//    MoLocationSuccess successCallBack;
//    MoLocationFailed failedCallBack;
}

@property (nonatomic, copy) MoLocationSuccess successCallBack;
@property (nonatomic, copy) MoLocationFailed failedCallBack;

+ (EDSMoLocationManager *)sharedGpsManager;

+ (void)getMoLocationWithSuccess:(MoLocationSuccess)success Failure:(MoLocationFailed)failure;

+ (void)stop;
@end

NS_ASSUME_NONNULL_END
